//
//  YHPeripheral.m
//  BLE4.0Example
//
//  Created by zxy on 2017/9/27.
//  Copyright © 2017年 saint. All rights reserved.
//

#import "YHPeripheral.h"
#import <objc/runtime.h>
static NSString *keyOfBlock;
@implementation CBPeripheral(YHExt)

- (void)setScanfTime:(NSDate *)scanfTime{
    objc_setAssociatedObject (self, &keyOfBlock, scanfTime, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}



- (NSDate *)scanfTime{
    return objc_getAssociatedObject(self, &keyOfBlock);
}

@end
